package com.shortlink.pojos.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@ApiModel
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_group")
public class GroupDO extends BaseDO{
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * id没有标识性
     * gid全局唯一，取6位随机码，可用于分片
     */
    @ApiModelProperty("分组标识")
    private String gid;

    private String groupName;

    private String username;

    @ApiModelProperty("排序顺序")
    private Integer sortOrder;

}
